// Spu管理页面相关api
import productRequest from '@/utils/productRequest'

// export const req = ()=>productRequest({url:``,method:''})

// 获取SPU分页列表数据
// /admin/product/{page}/{limit}  get  data:{page, limit, category3Id}
export const reqGetSpuList = (page, limit, category3Id) => productRequest({ url: `/admin/product/${page}/${limit}`, methods: 'get', params: { category3Id } })

// 获取spu基本信息
// /admin/product/getSpuById/{spuId}  get
export const reqGetSpuInfo = (spuId) => productRequest({ url: `/admin/product/getSpuById/${spuId}`, method: 'get' })

// 获取品牌列表数据
// /admin/product/baseTrademark/getTrademarkList   get
export const reqGetTrademarkList = () => productRequest({ url: `/admin/product/baseTrademark/getTrademarkList`, method: 'get' })

// 获取spu图片墙数据
// /admin/product/spuImageList/{spuId}  get
export const reqGetSpuImageList = (spuId) => productRequest({ url: `/admin/product/spuImageList/${spuId}`, method: 'get' })

// 获取spu销售属性列表数据
// /admin/product/baseSaleAttrList   get
export const reqGetSaleAttrList = () => productRequest({ url: `/admin/product/baseSaleAttrList`, method: 'get' })

